package com.sbl.bajw.pc.service;

import java.util.HashMap;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sbl.bajw.common.MyBatisDao;
import com.sbl.bajw.mapper.buildingModelDao;
import com.sbl.bajw.pc.model.buildingModel;

@Service
public class buildingModelService {
	
	@Resource
	private buildingModelDao dao;
	
	@Resource
	private MyBatisDao gridDao;
	
	public buildingModel getModel(String id){
		buildingModel model = dao.getModel(id);
		return model;
	}
	
	public String getModelList(){
		HashMap<String, Object> parm = new HashMap<String, Object>();
		String model = gridDao.selectPage(buildingModelDao.class, parm, "getAllModelList");
		return model;
	}
	
	public HashMap<String, Object> getBuildingModel(String id){
		HashMap<String, Object> parm = dao.getBuildingModel(id);
		return parm;
	}
	
	public String getCountDay(HashMap<String, Object> parm){
		String json = gridDao.selectPage(buildingModelDao.class, parm, "getCountDay");
		return json;
	}
	
	public void updateAttfileStutas(HashMap<String, String> parm){
		dao.updateAttfileStutas(parm);
	}
}
